package com.java.dao;

import java.sql.Connection;
import java.util.ArrayList;
import java.util.HashMap;

import com.java.util.DaoUtils;

public class Com0402lp01UpdateDao extends CommonDao{
	public ArrayList execute(HashMap requestMap,Connection con) {

		ArrayList list = new ArrayList();
		try {

			String queryStr = "call com_com0402p01Update(?,?,?,?,?,?,?,?,?)";

			String param[] = new String[9];
			param[0] = (String) requestMap.get("user_id");
			param[1] = (String) requestMap.get("login_nm");
			param[2] = (String) requestMap.get("login_pw");
			param[3] = (String) requestMap.get("norm_phone_no");
			param[4] = (String) requestMap.get("cell_phone_no");
			param[5] = (String) requestMap.get("email_id");
			param[6] = (String) requestMap.get("post_no");
			param[7] = (String) requestMap.get("post_addr");
			param[8] = (String) requestMap.get("detail_addr");
			list = DaoUtils.select(con, queryStr, param);
			
		} catch (Exception ee) {
			ee.printStackTrace();
		}finally {
			try{
				if (con!=null) con.setAutoCommit(true);
				if (con!=null) con.close();
			}catch(Exception ee){}
		}
		return list;
	}
}
